//
//  LCZAVPlayer.h
//  PersonalNews
//
//  Created by Golibyo on 15/11/30.
//  Copyright © 2015年 changshuhua. All rights reserved.
//

#import "LCZBaseView.h"
#import "LCZBaseLabel.h"
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>

@interface LCZAVPlayer : LCZBaseView
+ (instancetype)shareSingleton;
@property(nonatomic, strong)AVPlayer *player;// 播放器对象
@property(nonatomic, strong)AVPlayerItem *playerItem;// 播放属性
@property(nonatomic, strong)UISlider *slider;// 进度条
@property(nonatomic, strong)LCZBaseLabel *currentTimeLabel;// 当前播放时间
@property(nonatomic, strong)LCZBaseLabel *systemTimeLabel;// 系统时间
@property(nonatomic, assign)CGPoint startPoint;
@property(nonatomic, assign)CGFloat systemVolume;
@property(nonatomic, strong)UISlider *volumeViewSlider;
@property(nonatomic, strong)UIActivityIndicatorView *activity;// 系统菊花
@property(nonatomic, strong)UIProgressView *progress;// 缓冲条
@property(nonatomic, strong)LCZBaseView *topView;
@property(nonatomic, strong)LCZBaseView *bottomView;
@property(nonatomic, strong)AVPlayerLayer *playerLayer;
@property(nonatomic, strong)UIButton *startButton;
@property(nonatomic, strong)UIButton *returnButton;
- (void)makeUrl:(NSString *)url;
- (void)changeFrame:(CGRect)rect;
- (void)changeUrl:(NSString *)url;
@end
